package com.example.day2.adapter;

import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.day2.R;
import com.example.day2.entity.GiftResult;
import com.example.day2.entity.VideoResult;

public class StoreAdapter extends BaseQuickAdapter<VideoResult.DataBean, BaseViewHolder> {
    public StoreAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, VideoResult.DataBean dataBean) {
        ImageView view = baseViewHolder.getView(R.id.iv);
        Glide.with(getContext()).load(dataBean.getVideomainimg()).into(view);
        baseViewHolder.setText(R.id.tv,dataBean.getCaption());

    }
}
